<?php

	// +----------------------------------------------------------------------
	// | 标签
	// +----------------------------------------------------------------------
	// | Copyright (c) 2015-2024 http://www.yicmf.com, All rights reserved.
	// +----------------------------------------------------------------------
	// | Author: 微尘 <yicmf@qq.com>
	// +----------------------------------------------------------------------

	namespace app\event\cms;

	use app\common\event\Base;
	use think\Log;
	use app\model\cms\Tags as TagsModel;

	class Tags extends Base
	{

		public function lists($type = 'hot', $category_id = null, $num = 5)
		{
			$lists = TagsModel::where('status', 1)->limit($num)->order('use_times DESC')->select();
			return ['code' => 0, 'data' => $lists];
		}

	}
